﻿using Arim.S4.Api;
using Arim.S4.Client.Base.Dto;
using System.Collections.Generic;
using System.Configuration;

namespace Arim.S4.Client.Service
{
    public class KitAppService : IAppService
    {
        public virtual string Path { get; private set; }

        public KitAppService()
        {
            this.Path = ConfigurationManager.AppSettings.Get("ApiBaseUrl");
        }

        /// <summary>
        /// 获取流程定义对象。
        /// </summary>
        /// <returns></returns>
        public Dictionary<string, string> GetProcesses()
        {
            return new RestApi<Dictionary<string, string>>(this.Path).Get(Urls.KITS.PROCESSES);
        }

    }
}
